package com.rfid.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rfid.common.annotation.Excel;
import com.rfid.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * RFID数据明细对象 t_rfid_data_detail
 *
 * @author fangchen
 * @date 2020-12-26
 */
public class TRfidDataDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 单品号
     */
    @Excel(name = "单品号")
    private String itemNo;

    /**
     * 单据号
     */
    @Excel(name = "单据号")
    private String documentNo;

    /**
     * 功能表id
     */
    @Excel(name = "功能表id")
    private Long funcId;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    private String productId;

    /**
     * EPC
     */
    @Excel(name = "EPC")
    private String EPC;

    /**
     * 位置类别 G/I/L
     */
    @Excel(name = "位置类别 G/I/L")
    private String addressType;

    /**
     * 经纬度值
     */
    @Excel(name = "经纬度值")
    private String longitudeLatitude;

    /**
     * 预留字段,保存格式为json字段
     */
    @Excel(name = "预留字段,保存格式为json字段")
    private String field;

    private String productName;

    private String funcName;

    //单据类型名称
    private String documentTypeName;

    //单据日期
    private Date orderTotalDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDocumentNo(String documentNo) {
        this.documentNo = documentNo;
    }

    public String getDocumentNo() {
        return documentNo;
    }

    public void setFuncId(Long funcId) {
        this.funcId = funcId;
    }

    public Long getFuncId() {
        return funcId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductId() {
        return productId;
    }

    public void setEPC(String EPC) {
        this.EPC = EPC;
    }

    public String getEPC() {
        return EPC;
    }

    public void setAddressType(String addressType) {
        this.addressType = addressType;
    }

    public String getAddressType() {
        return addressType;
    }

    public void setLongitudeLatitude(String longitudeLatitude) {
        this.longitudeLatitude = longitudeLatitude;
    }

    public String getLongitudeLatitude() {
        return longitudeLatitude;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getField() {
        return field;
    }

    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getFuncName() {
        return funcName;
    }

    public void setFuncName(String funcName) {
        this.funcName = funcName;
    }

    public Date getOrderTotalDate() {
        return orderTotalDate;
    }

    public void setOrderTotalDate(Date orderTotalDate) {
        this.orderTotalDate = orderTotalDate;
    }

    public String getDocumentTypeName() {
        return documentTypeName;
    }

    public void setDocumentTypeName(String documentTypeName) {
        this.documentTypeName = documentTypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("documentNo", getDocumentNo())
                .append("funcId", getFuncId())
                .append("productId", getProductId())
                .append("EPC", getEPC())
                .append("addressType", getAddressType())
                .append("longitudeLatitude", getLongitudeLatitude())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("field", getField())
                .toString();
    }
}
